import Vue from "vue";
import Vuex from "vuex";

import state from "./state";
import mutations from "./mutations";
import action from "./actions";

Vue.use(Vuex);

const store = new Vuex.Store({
    // 挂载数据
    state,
    // 修改数据  同步使用
    mutations,
    // 提交mutation 异步使用
    actions
})

export default store;
